package com.zhiyou100.service;

import java.util.ArrayList;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zhiyou100.dao.ProjectDao;
import com.zhiyou100.model.Detail;
import com.zhiyou100.model.Progress;
import com.zhiyou100.model.Project;
import com.zhiyou100.param.ProjectParam;
import com.zhiyou100.vo.PageVo;
@Service
public class ProjectServiceImpl implements ProjectService {
	
	@Autowired
	private ProjectDao projectDao;

	
	@Override
	public Project getByprojectId(Integer projectId) {
		
		return projectDao.getByProjectId(projectId);
	}

	@Override
	public void add(Project project) {
		projectDao.add(project);

	}

	@Override
	public void updateProject(Project project) {
		projectDao.updateProject(project);

	}

	@Override
	public void delete(Integer id) {
		projectDao.delete(id);
	}

//提交审核
	@Override
	public void updateStatus(Integer id) {
		
		projectDao.updateStatus(id);
		
	}

	@Override
	public void saveUpadateProject(Progress progress) {
		projectDao.saveUpadateProject(progress);
		
	}


//	@Override
//	public ArrayList<Project> getByTerm(ProjectParam projectParam) {
//		
//		return null;
//	}

}
